<?php    
header('Content-type: application/doc');
header("Content-Disposition:attachment;filename=thkinhphi.xls");
?>
<style type="text/css">
p{font-size:18px;}
table, th {
    border-style:solid;
    border-width:1px;
	text-align:left;
	font-family:"Times New Roman", Times, serif;
	
	width:100%;
	font-size:19px;
	padding:2px;
}
#td1{
	text-align:left;
	}
#td2{
	text-align:right;
	}
	#td3{
	text-align:center;
	}
  td{ width: 20px;}
</style><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div  style="margin-top:30px; margin-left:10px; margin-right:10px; margin-bottom:30px; padding-left:0px; padding-right:0px;  width:1000px; text-align:justify">
 <table width="100%" cellpadding="7">
  <tr>
    <td align="center">BỘ QUỐC PHÒNG</td>
    <td align="center"><b>CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM</b></td>
  </tr>
  <tr>
    <td align="center"><b>BỘ TƯ LỆNH QUÂN KHU 9</b></td>
    <td align="center"><b>Độc lập - Tự do - Hạnh phúc</b></td>
  </tr>
</table>
  <p align="center">&nbsp;<b style="font-size:27px">TỔNG HỢP KINH PHÍ</b></p>
   <p align="center">&nbsp;<b style="font-size:22px">TÊN CÔNG TRÌNH:

<?php
//##################vung do du lieu tu csdl
echo $ct ['Ctrinh'] ['tenctrinh'];
//####################HET VUNG DO DU LIEU
?>

   </b></p>
    <p align="center">&nbsp;<b style="font-size:22px">HẠNG MỤC:
    <?php
//##################vung do du lieu tu csdl
echo $p['Hangmuc'] ['tenhm'];
//##################vung do du lieu tu csdl
    ?></b></p>
    </div>
<?php 
//##################vung do du lieu tu csdl
echo $ctable->viewxls($phieus,$ketqua,$tong,1);
//##################vung do du lieu tu csdl
?>

</body>
</html>
